// 健康管理，相关接口
import request from '@/utils/request.js'

// 健康管理-种群健康证明，获取数据列表
export const reqGetHealthCertificatePage = (params) => {
    return request({
        url: '/health-certificate/page',
        method: 'get',
        params
    })
}

// 健康管理-种群健康证明，新增
export const reqGetFealthCertificateAddOrUpdate = (data) => {
    return request({
        url: '/health-certificate/add-or-update',
        method: 'post',
        data
    })
}

// 健康管理-种群健康证明，新增，上传化验报告-单个文件
export const uploadFileOne= (data) => {
    return request({
        url: '/upload/file',
        method: 'post',
        data
    })
}

// 健康管理-种群健康证明，编辑，通过id找详情
export const reqGetFealthCertificateInfo = (params) => {
    return request({
        url: '/health-certificate/info',
        method: 'get',
        params
    })
}

// 健康管理-免疫记录
export const reqGetCowVaccinatioList = (params) => {
    return request({
        url: '/cow-vaccinatio/list',
        method: 'get',
        params
    })
}

// 健康管理-免疫记录，查看详情弹窗
export const reqGetCowVaccinatioInfo = (params) => {
    return request({
        url: '/cow-vaccinatio/info',
        method: 'get',
        params
    })
}

// 健康管理-免疫记录，疫苗类型下拉菜单
export const reqGetVaccinationList = () => {
    return request({
        url: '/dict/vaccination/list',
        method: 'get'
    })
}